package com.yanmaohu.yulia.bean;

import com.yanmaohu.yulia.statement.SqlSchemaDefinitionStatement;

/**
 * @author Bright Lee
 */
public final class SequenceGeneratorDefinition implements SchemaElement, SqlSchemaDefinitionStatement {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName sequenceGeneratorName;
    private SequenceGeneratorOptions sequenceGeneratorOptions;

    public SequenceGeneratorDefinition(int beginIndex,
                                       int endIndex,
                                       SchemaQualifiedName sequenceGeneratorName,
                                       SequenceGeneratorOptions sequenceGeneratorOptions) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sequenceGeneratorName = sequenceGeneratorName;
        this.sequenceGeneratorOptions = sequenceGeneratorOptions;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getSequenceGeneratorName() {
        return sequenceGeneratorName;
    }

    public SequenceGeneratorOptions getSequenceGeneratorOptions() {
        return sequenceGeneratorOptions;
    }

}
